package org.dru.clay.rhino.feature.ivy;

import java.io.File;

public class IvyConfiguration {
	public static final String DEFAULT_IVY_PATTERN = "/[organisation]/[module]/[module]-[revision]/ivy-[revision].xml";
	public static final String DEFAULT_ARTIFACT_PATTERN = "/[organisation]/[module]/[module]-[revision]/[artifact]";

	private String ivyPattern;
	private String artifactPattern;
	private String location;
	private String cacheDir;
	private String resolveDir;

	public IvyConfiguration() {
		ivyPattern = DEFAULT_IVY_PATTERN;
		artifactPattern = DEFAULT_ARTIFACT_PATTERN;
		resolveDir = "build" + File.separator + "ivy";
		cacheDir = System.getProperty("user.home") + File.separator + ".ivy-cache";
	}

	public String getIvyPattern() {
		return ivyPattern;
	}

	public void setIvyPattern(String ivyPattern) {
		this.ivyPattern = ivyPattern;
	}

	public String getArtifactPattern() {
		return artifactPattern;
	}

	public void setArtifactPattern(String artifactPattern) {
		this.artifactPattern = artifactPattern;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getCacheDir() {
		return cacheDir;
	}

	public void setCacheDir(String cacheDir) {
		this.cacheDir = cacheDir;
	}

	public String getResolveDir() {
		return resolveDir;
	}

	public void setResolveDir(String resolveDir) {
		this.resolveDir = resolveDir;
	}

}
